﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.tailingpond_daily_ditch_info>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	初期坝及挡水坝（每日）
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul class="top_tab">
                <li><a href="/Record/TailingpondWater/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>水位及水质</span></a></li>
                <li><a href="/Record/TailingpondBackWater/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>进浆及回水</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>沉降及位移</span></a></li>
                <li><a href="/Record/TailingpondFilldam/<%=ViewData["id"] %>?date=<%=Model.date%>&factoryId=<%=ViewData["factoryId"] %>"><span>尾矿堆积坝</span></a></li>
	        </ul>
	    </div>
	</div>

    <%
           bool result = (bool)ViewData["success"];
           if(result){ 
        %>
           <div class="tips_area">沉降及位移更新成功</div>
        <%
        }
        %>

    <% using (Html.BeginForm())
    {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.tailingpond_id) %>
        <%= Html.HiddenFor(model => model.date) %>
        <%= Html.Hidden("factoryId", ViewData["factoryId"]) %>
            
    
    
    <table cellpadding="4" cellspacing="0" class="com_from_table" style="width:756px;">
        <tr>
            <th colspan="2">沉降及位移（每日 - <%= Model.date.Year%>年<%=Model.date.Month%>月<%=Model.date.Day%>日）</th>
        </tr>
        <tr>
            <td class="lab" style="width:126px;">测量人员：</td>
            <td>
                <%= Html.DropDownList("tester_id", ViewData["users"] as List<SelectListItem>, "请选择", new { style = "width:150px" })%>
                <%= Html.ValidationMessageFor(model => model.tester_id)%>
            </td>
        </tr>

    </table>
    
    

    <fieldset class="tf_style">
        <p>
            <span style="display:inline-block;width:220px">初期坝脚有无冒浆迹象：</span>
            <input type="radio" name="is_dike_footer_leaked" value="1" <%if (Model.is_dike_footer_leaked == 1){ %> checked="checked"<%} %> onclick='switchComment("is_dike_footer_leaked", "dike_footer_leaked_desc");' />有
            <input type="radio" name="is_dike_footer_leaked" value="0" <%if (Model.is_dike_footer_leaked != 1){ %> checked="checked"<%} %> onclick='switchComment("is_dike_footer_leaked", "dike_footer_leaked_desc");' />无
        </p>
        <%= Html.TextAreaFor(model => model.dike_footer_leaked_desc, new { cols = "80", rows = "5" })%>
        <%= Html.ValidationMessageFor(model => model.dike_footer_leaked_desc)%>
        <p></p>
        <p>
            <span style="display:inline-block;width:220px">挡水坝坡脚有无管涌迹象：</span>
            <input type="radio" name="is_ditch_footer_leaked" value="1" <%if (Model.is_ditch_footer_leaked == 1){ %> checked="checked"<%} %> onclick='switchComment("is_ditch_footer_leaked", "ditch_footer_leaked_desc");' />有
            <input type="radio" name="is_ditch_footer_leaked" value="0" <%if (Model.is_ditch_footer_leaked != 1){ %> checked="checked"<%} %> onclick='switchComment("is_ditch_footer_leaked", "ditch_footer_leaked_desc");' />无
        </p>
        <%= Html.TextAreaFor(model => model.ditch_footer_leaked_desc, new { cols = "80", rows = "5" })%>
        <%= Html.ValidationMessageFor(model => model.ditch_footer_leaked_desc)%>
        <p></p>
        <p>
            <span style="display:inline-block;width:220px">挡水坝肩有无出水现象：</span>
            <input type="radio" name="is_ditch_bear_leaked" value="1" <%if (Model.is_ditch_bear_leaked == 1){ %> checked="checked"<%} %> onclick='switchComment("is_ditch_bear_leaked", "ditch_bear_leaked_desc");' />有
            <input type="radio" name="is_ditch_bear_leaked" value="0" <%if (Model.is_ditch_bear_leaked != 1){ %> checked="checked"<%} %> onclick='switchComment("is_ditch_bear_leaked", "ditch_bear_leaked_desc");' />无
        </p>
        <%= Html.TextAreaFor(model => model.ditch_bear_leaked_desc, new { cols = "80", rows = "5" })%>
        <%= Html.ValidationMessageFor(model => model.ditch_bear_leaked_desc)%>
        <p></p>
        <p>
            <span style="display:inline-block;width:220px">初期坝上游坝面土工布是否已不完整：</span>
            <input type="radio" name="is_dike_upstream_completed" value="1" <%if (Model.is_dike_upstream_completed == 1){ %> checked="checked"<%} %> onclick='switchComment("is_dike_upstream_completed", "dike_upstream_completed_desc");' />有
            <input type="radio" name="is_dike_upstream_completed" value="0" <%if (Model.is_dike_upstream_completed != 1){ %> checked="checked"<%} %> onclick='switchComment("is_dike_upstream_completed", "dike_upstream_completed_desc");' />无
        </p>
        <%= Html.TextAreaFor(model => model.dike_upstream_completed_desc, new { cols = "80", rows = "5" })%>
        <%= Html.ValidationMessageFor(model => model.dike_upstream_completed_desc)%>
    </fieldset>


    <div class="submit_btn_area" style="margin-left:138px;">
        <input type="submit" value="提 交" />
    </div>

    <% } %>

    <script type="text/javascript">
        function switchComment(optionName, commentId) {
            var value = $("input[name=" + optionName + "]:checked").val();
            if (value == "0") {
                $("#" + commentId).css("display", "none");
            }
            else {
                $("#" + commentId).css("display", "");
            }
        }

        switchComment("is_dike_footer_leaked", "dike_footer_leaked_desc");
        switchComment("is_ditch_footer_leaked", "ditch_footer_leaked_desc");
        switchComment("is_ditch_bear_leaked", "ditch_bear_leaked_desc");
        switchComment("is_dike_upstream_completed", "dike_upstream_completed_desc");
    </script>

    
</asp:Content>
